﻿using Abp.Application.Services;
using MyCompanyName.AbpZeroTemplate.Prm.Project.Dto;
using MyCompanyName.AbpZeroTemplate.Prm.Project.Permission;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace MyCompanyName.AbpZeroTemplate.Prm.Project
{
    public interface IPermissionAppService : IApplicationService
    {
        /// <summary>
        /// 是否有新增项目权限
        /// </summary>
        /// <returns></returns>
        bool HasAddProject();

        /// <summary>
        /// 项目详细界面权限
        /// </summary>
        /// <returns></returns>
        GetDetailPermissionOutPut GetDetailPermissionOutPut([FromUri] int projectId);


        /// <summary>
        /// 工艺权限
        /// </summary>
        /// <returns></returns>
        GetDetailPermissionOutPut GetSynthPermissionOutPut([FromUri] int projectId);

        /// <summary>
        /// 是否有设置文档上传类型权限
        /// </summary>
        /// <returns></returns>
        GetDocumentAuth GetHasSetType([FromUri] int projectId);


        /// <summary>
        /// 是否有文档上传权限
        /// </summary>
        /// <returns></returns>
        GetDocumentAuth GetHasAuth([FromUri] int typeId, int projectId);

    }
}
